package org.lagou.edu;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import org.lagou.edu.service.TestService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDubboConfiguration
public class RpcConsumerDemo {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(RpcConsumerDemo.class, args);
        TestService testService = applicationContext.getBean(TestService.class);
        testService.test();
    }
}
